package com.gzz.demo.multithread.thread;

public class AddThread implements Runnable {
	private Plate plate;
    private Object egg=new Object();
    public AddThread(Plate plate){
        this.plate=plate;
    }
   
    public void run(){
        for(int i=0;i<5;i++){
            plate.putEgg(egg);
        }
    }
}
